package com.min.star.model;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("sys_teacher")
public class Teacher extends BaseEntity {
	
	@TableId(type = IdType.AUTO)
	private Long id;
	
	@TableField("teacher_name")
	@NotBlank(message = "{teacher.teacherName.required}")
	private String teacherName;
	
	@TableField("teacher_sex")
	private String teacherSex;
	
	@TableField("teacher_phone")
	@NotBlank(message = "{teacher.teacherPhone.required}")
	@DecimalMax(value = "99999999999",message = "{teacher.teacherPhone.minlength}")
	@DecimalMin(value = "10000000000",message = "{teacher.teacherPhone.minlength}")
	private String teacherPhone;

	@TableField("teacher_pass")
	private String teacherPass;

	@TableField("status")
	private String status;
	
	public Teacher() {
		super();
	}

	public Teacher(Long id, String teacherPass) {
		super();
		this.id = id;
		this.teacherPass = teacherPass;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getTeacherPhone() {
		return teacherPhone;
	}

	public String getTeacherSex() {
		return teacherSex;
	}

	public void setTeacherSex(String teacherSex) {
		this.teacherSex = teacherSex;
	}

	public void setTeacherPhone(String teacherPhone) {
		this.teacherPhone = teacherPhone;
	}

	public String getTeacherPass() {
		return teacherPass;
	}

	public void setTeacherPass(String teacherPass) {
		this.teacherPass = teacherPass;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Teacher [id=" + id + ", teacherName=" + teacherName + ", teacherPhone=" + teacherPhone
				+ ", teacherPass=" + teacherPass + ", status=" + status + "]";
	}
	
}
